Page({

  /**
   * 页面的初始数据
   */
  data: {
    swiperIndex:0,
    swiper_img:[
      "../../images/index/swiper1.jpg",
      "../../images/index/swiper2.jpg",
      "../../images/index/swiper3.jpg"
    ],
    navigte:[
      "../../pages/buy/buy",
      "../../pages/fazhan/fazhan",
      "../../pages/choujiang/choujiang",
    ]
  },
  /**
   * 轮播图动画效果，获取当前元素的下标
   */
  swiperChange(e) {
    const that = this;
    that.setData({
      swiperIndex: e.detail.current,
    })
  },
})